home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1991 …esperately Seeking Seven / Desperately Seeking Seven.2mg / Dev.CD.8 / Essentials / Tools / File.Type.Notes / FTN.B7.XXXX < prev    next >
Encoding:
Text File  |  1990-07-27  |  2.3 KB  |  48 lines  |  [04] ASCII Text (0x0000)

  1. Apple II
  2. File Type Notes
  3. _____________________________________________________________________________
  4.                                                   Developer Technical Support
  5.  
  6. File Type:         $B7 (183)
  7. Auxiliary Type:    All
  8.  
  9. Full Name:     ProDOS 16 or GS/OS Temporary Initialization File
  10. Short Name:    Temporary initialization file
  11.  
  12. Written by:    Matt Deatherage                                 September 1990
  13.  
  14. Files of this type contain initialization code that is unloaded immediately 
  15. after executing.
  16. _____________________________________________________________________________
  17.  
  18. Files of type $B7 contain temporary initialization code.  Such files are often 
  19. referred to as "inits".  They are loaded by GS/OS at boot time and are 
  20. unloaded immediately after execution.  The auxiliary type is reserved except 
  21. for bit 15--if bit 15 is set, the initialization file is not loaded.
  22.  
  23. The structure of an init is similar to that of an application.  The first byte 
  24. of the loaded code image (inits are load files) is the entry point, and the 
  25. init must end with an RTL instruction.  When GS/OS transfers control to a 
  26. temporary initialization file, the processor is in 16-bit native mode.  The A 
  27. register contains the init's user ID, D points to the bottom of a 4K stack and 
  28. direct-page area and S points to near the top of that area.  (If the init has 
  29. an OMF stack and direct page segment linked in, the D and S registers point to 
  30. it instead.)  The data bank register is not defined; you should save it, set 
  31. it and restore it if you use absolute addressing.
  32.  
  33. Temporary initialization files are shut down by GS/OS after they perform their 
  34. RTL, so they are a good choice for transient purposes.  Temporary inits are 
  35. good for playing sounds during the boot process, loading pictures, and other 
  36. instances where data is passed to other system routines.  For example, a 
  37. temporary init might read files from a disk and save them to a RAM disk.  The 
  38. init gets to set up the RAM disk, but after that's done it doesn't need to 
  39. stick around and take up memory--and since it's a temporary init, GS/OS unloads 
  40. it after its work is done.
  41.  
  42.  
  43. Further Reference
  44. _____________________________________________________________________________
  45.   o  GS/OS Reference
  46.   o  File Type Note for File Type $B6, Permanent Initialization Files
  47.  
  48.